﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Confighelper
{
    [DataContract]
    public class Config:ViewModelBase
    {
        private string key;

        [DataMember]
        public string Key
        {
            get { return key; }
            set { key = value;
                RaisePropertyChanged(nameof(key));
            }
        }

        private string values;

        [DataMember]
        public string Value
        {
            get { return values; }
            set { values = value;
                RaisePropertyChanged(nameof(Value)); }
        }

        private string note;

        [DataMember]
        public string Note
        {
            get { return note; }
            set { note = value;
                RaisePropertyChanged(nameof(Note));
            }
        }

        private bool isSelected;

        [DataMember]
        public bool IsSelected
        {
            get { return isSelected; }
            set
            { isSelected = value; 
              RaisePropertyChanged(nameof(IsSelected));
            }
        }


    }
}
